TOP=.

include $(TOP)/Makefile.misc

EXTRA_FLAGS=-lpthread

all: client server_process  server_thread_epoll
client: client.o
	${CC} -o client $<
server_process: server_process.o $<
	${CC} -o server_process $<
#server_thread: server_thread.o
#	${CC} -o $@ $(EXTRA_FLAGS) $<
server_thread_epoll: server_thread_epoll.o
	${CC} -o $@ $(EXTRA_FLAGS) $<

client.o: client.c
	${CC} ${CFLAGS} -c  $<
server_process.o: server_process.c
	${CC} ${CFLAGS} -c $<
#server_thread.o: server_thread.c
#	$(CC) ${CFLAGS}  -c $<
server_thread_epoll.o: server_thread_epoll.c
	$(CC) ${CFLAGS}  -c $<

.PHONY:
clean:
	rm -rf *.o client server_process server_thread server_thread_epoll server_process_epoll_ex
